﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace NewstorePlateformeMobileApp
{
    public class SessionHelper
    {
        public enum sessionVariables { iUTILIS_ID }

        public static object GetSession(sessionVariables var)
        {
            try
            {
                return HttpContext.Current.Session[var.ToString()];
            }
            catch
            {
                return null;
            }

        }

        public static void SetSession(sessionVariables var, object value)
        {
            HttpContext.Current.Session[var.ToString()] = value;
        }
    }
}